package com.chuanggou.controller;

import org.csource.fastdfs.TrackerClient;
import org.csource.fastdfs.TrackerServer;

/**
 * @author yd
 * @version 1.0
 * @date 2020/2/26 0026 黄啟军
 * 抽取文件操作的公共部分
 */
public class TrackerService {
    public static TrackerServer getTrackerService() throws Exception {
        //创建一个Tracker访问的客户端对象TrackerClient
        TrackerClient trackerClient = new TrackerClient();
        //通过TrackerClient访问TrackerServer服务，获取连接信息
       return trackerClient.getConnection();
    }
}
